//
//  SearchView.m
//  LoverGo
//
//  Created by liudonghuan on 14-9-20.
//  Copyright (c) 2014年 yexiao. All rights reserved.
//

#import "SearchView.h"

@implementation SearchView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        _mysearchBar = [[UISearchBar alloc] init];

        [_mysearchBar setAutocapitalizationType:UITextAutocapitalizationTypeNone];
        [_mysearchBar sizeToFit];
        
        _mytableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
        _mytableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        _mytableView.tableHeaderView = _mysearchBar;
        [self addSubview:_mytableView];
        
       

    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
